"no backup file
set nobackup

set nu

set smartindent  
set smarttab  
set expandtab  
set tabstop=4  
set softtabstop=4  
set shiftwidth=4 


color elflord
set guifont=Consolas



set nocompatible
set guioptions-=m
set guioptions-=T
autocmd GUIEnter * simalt ~x

hi Pmenu guibg=DarkBlue guifg=Yellow gui=bold ctermfg=Yellow ctermbg=DarkBlue

"TagList
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1

"WinManager
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap wt :WMToggle<cr>

"MiniBufExplorer
let g:miniBufExplMapWindowNavVim = 1 
let g:miniBufExplMapWindowNavArrows = 1 
let g:miniBufExplMapCTabSwitchBufs = 1 
let g:miniBufExplModSelTarget = 1

"map  <c-tab>  <Esc>:bn<cr>
"map  <c-s-tab> <Esc>:bp<cr>

"ignore case where search
set ignorecase smartcase

set completeopt=longest,menu
set wildmenu
set wildmenu
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
autocmd FileType java set omnifunc=javacomplete#Complet



set so=7

"author info
let g:vimrc_author='Zimmem' 
let g:vimrc_email='zimmem@gmail.com' 
let g:vimrc_homepage='http://www.zimmem.com' 
nmap <F4> :AuthorInfoDetect<cr>



set encoding=utf-8
set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1 
set termencoding=utf-8

